/*
 * BEEP.c
 *
 *  Created on: 2025年7月5日
 *      Author: 黄少杰
 */
#include "beep.h"

void Beep_Init()
{
    R_IOPORT_PinWrite(&g_ioport_ctrl, beep_io, 0);
}



void Beep_delayms(uint32_t ms)
{
    R_IOPORT_PinWrite(&g_ioport_ctrl, beep_io, 1);
    R_BSP_SoftwareDelay(ms,BSP_DELAY_UNITS_MILLISECONDS);
    R_IOPORT_PinWrite(&g_ioport_ctrl, beep_io, 0);
}
